package com.rc.pojo.dto.consumer;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class ConsumerDTO {
    @NotBlank
    private String avatar;

    @NotBlank
    private String nickName;

    @NotBlank
    private String name;

    @NotBlank
    private String sex;

    @NotBlank
    @Pattern(regexp = "^1[3-9][0-9]{9}$", message = "手机号格式错误")
    private String phone;
}
